package com.tank.entity;

import java.io.Serializable;
import java.util.concurrent.ConcurrentHashMap;
import java.util.concurrent.CopyOnWriteArrayList;

import com.tank.map.Map;

/**
 * 游戏的资源
 * 
 * @author young
 *
 */
public class GameResource implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
//	private MyTank myTank;
	private CopyOnWriteArrayList<Bomb> bombs = new CopyOnWriteArrayList<>();
	private CopyOnWriteArrayList<RobotTank> robotTanks = new CopyOnWriteArrayList<>();
	private ConcurrentHashMap<String,Tank> playerTanks = new ConcurrentHashMap<>();	//所有玩家的坦克
	private Map map;

	public CopyOnWriteArrayList<Bomb> getBombs() {
		return bombs;
	}

	public void setBombs(CopyOnWriteArrayList<Bomb> bombs) {
		this.bombs = bombs;
	}

	public Map getMap() {
		return map;
	}

	public void setMap(Map map) {
		this.map = map;
	}

//	public MyTank getMyTank() {
//		return myTank;
//	}
//
//	public void setMyTank(MyTank myTank) {
//		this.myTank = myTank;
//	}

	public CopyOnWriteArrayList<RobotTank> getRobotTanks() {
		return robotTanks;
	}

	public void setRobotTanks(CopyOnWriteArrayList<RobotTank> robotTanks) {
		this.robotTanks = robotTanks;
	}

	public ConcurrentHashMap<String, Tank> getPlayerTanks() {
		return playerTanks;
	}

	public void setPlayerTanks(ConcurrentHashMap<String, Tank> playerTanks) {
		this.playerTanks = playerTanks;
	}

	

	

}
